package com.fndsoft.police.xuancheng.ui.main;

import android.os.Handler;
import android.os.Message;

import com.fndsoft.police.xuancheng.R;
import com.fndsoft.police.xuancheng.domain.ThreadMessage;
import com.fndsoft.police.xuancheng.net.OperateCode;
import com.fndsoft.police.xuancheng.ui.base.BaseAc;
import com.lidroid.xutils.ViewUtils;

/**
 * 系统更新界面
 * 
 * @author LiangXiangJu
 * @creationTime 2014-7-18 下午3:14:30
 * @version
 */
public class LoadingAc extends BaseAc {
	private Handler handler;

	@Override
	public void doResponseFinished(OperateCode operateCode,
			ThreadMessage threadMessage) {

	}

	@Override
	protected void installViews() {
		setContentView(R.layout.loading_ac);
		ViewUtils.inject(this);
		handler = new Handler() {

			@Override
			public void handleMessage(Message msg) {
				if (msg.what == 0x123) {
					LoadingAc.this.startCOActivity(LoginAc.class);
				}
				super.handleMessage(msg);
			}
		};
	}

	@Override
	protected void onResume() {
		handler.sendEmptyMessageDelayed(0x123, 3000);
		super.onResume();
	}

	@Override
	protected void initData() {
	}

	@Override
	public boolean isCustomBackBtnEvent() {
		return false;
	}

}
